﻿/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function(config) {
    // Define changes to default configuration here. For example:
    config.autoLanguage = false;
    config.defaultLanguage = 'zh_cn';
    config.skin = "v2";
    config.enterMode = CKEDITOR.ENTER_BR;
    config.shiftEnterMode = CKEDITOR.ENTER_P;

    config.resize_enabled = true;
    //改变大小的最大高度 plugins/resize/plugin.js
    config.resize_maxHeight = 3000;

    //改变大小的最大宽度 plugins/resize/plugin.js
    config.resize_maxWidth = 3000;

    //改变大小的最小高度 plugins/resize/plugin.js
    config.resize_minHeight = 100;

    //改变大小的最小宽度 plugins/resize/plugin.js
    config.resize_minWidth = 200;
    //当用户键入TAB时，编辑器走过的空格数，( ) 当值为0时，焦点将移出编辑框 plugins/tab/plugin.js
    config.tabSpaces = 4;

    config.toolbarCanCollapse = true;

    //编辑器的z-index值
    config.baseFloatZIndex = 1000;
//    config.toolbar =
//    [
//        ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock','Outdent','Indent','Blockquote'],
//        ['PasteText','PasteFromWord','-', 'SpellChecker', 'Scayt'],
//        ['Undo', 'Redo', '-', 'Link', 'Unlink', '-'],
//        ['Image','Table', 'HorizontalRule', 'Smiley', 'SpecialChar', '-'],
//        ['Preview', 'Templates', 'Source'],
//        '/',
//        ['Bold','Italic','Underline','TextColor','BGColor','-','Strike','Subscript','Superscript'],
//        ['NumberedList','BulletedList','-'],
//        ['Font','FontSize','Styles', 'Format']
//    ];

//    config.toolbar =
//    [
//    ['Source','-','Save','NewPage','Preview','-','Templates'],
//    ['PasteText','PasteFromWord','-', 'SpellChecker', 'Scayt'],
//    ['Undo','Redo'],
//    '/',
//    ['Bold','Italic','Underline','TextColor','BGColor','-','Strike','Subscript','Superscript'],
//    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
//    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
//    ['Link','Unlink','Anchor'],
//    ['Image','Table','HorizontalRule','Smiley','SpecialChar'],
//    '/',
//    ['Styles','Format','Font','FontSize'],
//    ];


};
